package com.jxd.reportsys.service.impl;

import com.jxd.reportsys.dao.IEmpMapper;
import com.jxd.reportsys.model.Emp;
import com.jxd.reportsys.service.IEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName EmpServiceImpl
 * @Description TODO
 * @Author 朱隶文
 * @Date 2024/9/19 16:46
 * @Version 1.0
 */
@Service
public class EmpServiceImpl implements IEmpService {

    @Autowired
    private IEmpMapper empMapper;

    @Override
    public Emp getEmpByEmpno(int empno) {
        return empMapper.getEmpByEmpno(empno);
    }

    @Override
    public int getEmpCountByDeptno(int deptno, String reportdate) {
        return empMapper.getEmpCountByDeptno(deptno, reportdate);
    }

    @Override
    public List<Emp> getEmpByDeptnoAndEname(Map<String, Object> map) {
        return empMapper.getEmpByDeptnoAndEname(map);
    }
}
